package com.bot.snakeRunningSystem.Service.Impl;

import com.bot.snakeRunningSystem.Service.SnakeRunningService;
import com.bot.snakeRunningSystem.pool.Snake;
import com.bot.snakeRunningSystem.pool.SnakePool;
import org.springframework.stereotype.Service;

@Service
public class SnakeRunningServiceImpl implements SnakeRunningService {
    public final static SnakePool snakePool = new SnakePool();
    @Override
    public String addSnake(Integer userId, String snakeCode, String input) {
        System.err.println("add snake： " + userId + " " + snakeCode + " " + input);
        snakePool.addSnakeToSnakeQueue(userId, snakeCode, input);
        return "add bot success.....";
    }
}
